<%@include file="header.jsp"%>
<table class="table table-striped">

	<tr>
		<th>#</th>
		<th><fmt:message key="label.booking.username" /></th>
		<th><fmt:message key="label.booking.facilityname" /></th>
		<th><fmt:message key="label.booking.startDate" /></th>
		<th><fmt:message key="label.booking.period" /></th>
		<th><fmt:message key="label.booking.status" /></th>
		<th><fmt:message key="label.booking.priority" /></th>
		<th><fmt:message key="label.booking.reason" /></th>
		<th><fmt:message key="label.booking.decision" /></th>
	    <th><fmt:message key="label.booking.process" /></th>
	</tr>
	<c:forEach var="booking" items="${bookinglist}" varStatus="status">
        <tr>
			<td>${status.index + 1}</td>
			<td>${booking.userName}</td>
			<td>${booking.facilityName}</td>
			<td>${booking.startDate}</td>
			<td>${booking.period}</td>
			<td>${booking.status}</td>
			<td>${booking.priority}</td>
			<td>${booking.reason}</td>
			
			<form name="myform" action="ApproveReject" method="POST">
	        <td> 
	        	<input type="radio" name="aa" value="approved">Approve<br>
				<input type="radio" name="aa" value="rejected">Reject
				
	        </td>
	        <td>
	            <input name="userid" type="hidden" value="${booking.userID}" >
				<input name="bkid" type="hidden" value="${booking.bookingID}" >
				<input name="comment" type="text" size="25" value="">
				<br><input class="btn btn-primary" type="submit" value="Process"><br>
	        </td>
	        </form>
	  </tr>
	
	</c:forEach>
	
</table>
<%@include file="footer.jsp"%>